package com.emergency.embackend.utils;

import lombok.Getter;

/**
 * @author chddd
 * @description
 * @create 2024/3/24 14:01:50
 */
public enum ShareStatusEnum {
    UN_CHECK("0","未审核"),
    IN_CHECK("1","审核中"),
    PASS_CHECK("2", "审核通过"),
    FAIL_CHECK("3","审核未通过");
    @Getter
    private final String code;

    @Getter
    private final String name;

    ShareStatusEnum(String code, String desc) {
        this.code = code;
        this.name = desc;
    }
    public static String getStatus(String code){
        for(ShareStatusEnum status:ShareStatusEnum.values()){
            if(status.getCode().equals(code)){
                return status.getName();
            }
        }
        return null;
    }

}
